package com.vim.modules.web.service;

import com.vim.common.utils.IdGen;
import com.vim.common.base.CrudServiceImpl;
import com.vim.modules.web.model.WeixinMenu;
import com.vim.modules.web.dao.WeixinMenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

@Service
public class WeixinMenuService extends CrudServiceImpl<WeixinMenu> {

    @Resource
    private WeixinMenuMapper weixinMenuMapper;

    @Autowired
    public WeixinMenuService(WeixinMenuMapper mapper) {
        super(mapper);
    }

    @Override
    public int save(WeixinMenu entity) {
        entity.setMenuId(IdGen.uuid());
        return super.save(entity);
    }

}

